package com.lin.controller;

import com.lin.pojo.MManufacture;
import com.lin.pojo.PageVo;
import com.lin.service.MmanUfactUreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class MmanUfactUreController {
    @Autowired
    MmanUfactUreService mmanUfactUreService;

    @GetMapping("/umanufacture")
    public PageVo<MManufacture> queryAllProduction(MManufacture mManufacture,
                                                   @RequestParam(value = "pageno",defaultValue = "1") Integer pageno,
                                                   @RequestParam(value = "pagesize",defaultValue = "5")Integer pagesize){
        return mmanUfactUreService.queryAllProduction(mManufacture,pageno,pagesize);
    }

}
